<?php
session_start();
include "../../include/dbFunctions.php";
$eid = $_SESSION['eid'];
$query1 = "UPDATE event
            SET event_status = 'confirmed'
            WHERE event_id = $eid";
$result1 = executeQuery($query1);
if ($result1!=0) {
    $_SESSION['mes']="The record has been updated successfully";
    header('Location: ' . $_SERVER['HTTP_REFERER']);
} else {
    $_SESSION['mes']="Error! Please try again";
    header('Location: ' . $_SERVER['HTTP_REFERER']);
}
?>
